package com.duobaoyu.dby.supply.biz.converter;

import com.duobaoyu.dby.common.core.constant.CommonConstants;
import com.duobaoyu.dby.common.core.convert.bean.ReferenceMapper;
import com.duobaoyu.dby.supply.common.biz.dto.config.ChannelCallbackMappingDTO;
import com.duobaoyu.dby.supply.db.entity.config.ChannelCallbackMapping;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ChannelCallbackMappingConverter
 * @createTime 10:42:00 2023/10/16
 */
@Mapper(uses = ReferenceMapper.class, builder = @Builder(disableBuilder = true), componentModel = CommonConstants.COMPONENT_MODEL)
public interface ChannelCallbackMappingConverter {
    /**
     * to ChannelCallbackMapping
     * @param channelCallbackMapping
     * @return
     */
    ChannelCallbackMapping toChannelCallbackMapping(ChannelCallbackMappingDTO channelCallbackMapping);
}
